package com.ruiysoft.controller.integral.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * IntegralConfVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-04-13T19:28:15.988+08:00")

public class IntegralConfVo   {
  @JsonProperty("rate")
  private Integer rate = null;

  public IntegralConfVo rate(Integer rate) {
    this.rate = rate;
    return this;
  }

  /**
   * 汇率（积分：人民币例5代表5积分=1块）
   * @return rate
  **/
  @ApiModelProperty(example = "1", value = "汇率（积分：人民币例5代表5积分=1块）")


  public Integer getRate() {
    return rate;
  }

  public void setRate(Integer rate) {
    this.rate = rate;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    IntegralConfVo integralConfVo = (IntegralConfVo) o;
    return Objects.equals(this.rate, integralConfVo.rate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(rate);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class IntegralConfVo {\n");

    sb.append("    rate: ").append(toIndentedString(rate)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

